package com.dotnet.modules.field.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dotnet.modules.field.entity.FieldPrice;
import com.dotnet.modules.field.mapper.FieldPriceMapper;

/**
 * 
 * 描述：
 * 创建人： 魏泽超
 * 创建时间: 2016-6-7 上午11:02:59
 * @version
 */
@Service
public class FieldPriceServiceImpl implements FieldPriceService{

	@Autowired
	private FieldPriceMapper fieldPriceMapper;
		
	@Override
	public FieldPrice queryOne(FieldPrice record) {
		// TODO Auto-generated method stub
		return fieldPriceMapper.selectOne(record);
	}

	@Override
	public List<FieldPrice> queryAll(FieldPrice record) {
		// TODO Auto-generated method stub
		return fieldPriceMapper.select(record);
	}

	@Override
	public int queryCount(FieldPrice record) {
		// TODO Auto-generated method stub
		return fieldPriceMapper.selectCount(record);
	}

	@Override
	public FieldPrice queryByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return fieldPriceMapper.selectByPrimaryKey(key);
	}

	@Override
	public int add(FieldPrice record) {
		// TODO Auto-generated method stub
		return fieldPriceMapper.insert(record);
	}

	@Override
	public int addSelective(FieldPrice record) {
		// TODO Auto-generated method stub
		return fieldPriceMapper.insertSelective(record);
	}

	@Override
	public int delete(FieldPrice record) {
		// TODO Auto-generated method stub
		return fieldPriceMapper.delete(record);
	}

	@Override
	public int deleteByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return fieldPriceMapper.deleteByPrimaryKey(key);
	}

	@Override
	public int updateByPrimaryKey(FieldPrice record) {
		// TODO Auto-generated method stub
		return fieldPriceMapper.updateByPrimaryKey(record);
	}

	@Override
	public int updateByPrimaryKeySelective(FieldPrice record) {
		// TODO Auto-generated method stub
		return fieldPriceMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int queryCountByExample(FieldPrice example) {
		// TODO Auto-generated method stub
		return fieldPriceMapper.selectCountByExample(example);
	}

	@Override
	public List<FieldPrice> queryByExample(FieldPrice example) {
		// TODO Auto-generated method stub
		return fieldPriceMapper.selectByExample(example);
	}

}
